﻿@model InfoTech.VinhSon.Models.GroupModel
@{
    ViewBag.Title = "Add Group Panel";
    ViewBag.MnuLevel1 = "layout";
    ViewBag.MnuLevel2 = "group";
    Layout = "~/Areas/Administrator/Views/Shared/_Layout.cshtml";
}
@section navigation
{
    <ul class="breadcrumbs">
        <li><a href="@Url.Action("Index",
                                 "Dashboard")"><i class="iconfa-home"></i></a><span class="separator">
            </span></li>
        <li><a href="@Url.Action("Index")">Group Panel Manager</a><span class="separator"> </span>
        </li>
        <li>Add Group Panel</li>
    </ul>
}
@section header
{
    <div class="pageheader">
        <div class="pageicon">
            <span class="iconfa-list-alt"></span>
        </div>
        <div class="pagetitle">
            <h1>
                Add Group Panel</h1>
        </div>
    </div>
}
@Html.ValidationSummary()
<div class="widgetbox">
    <h4 class="widgettitle">
        Add Group Panel</h4>
    <div class="widgetcontent nopadding">
        <form class="stdform stdform2" method="POST">
        <p>
            <label>
                Layout</label>
            <span class="field">
                @Html.DropDownListFor(c => c.LayoutId,
                                          (IEnumerable<SelectListItem>)ViewBag.Layouts,
                                          new
                                              {
                                                  @class = "uniformselect"
                                              })
                @Html.ValidationMessageFor(c => c.LayoutId)
            </span>
        </p>
        <p>
            <label>
                Name</label>
            <span class="field">
                @Html.TextBoxFor(c => c.Name,
                                     new
                                         {
                                             @class = "input-xlarge",
                                             placeholder = "Name"
                                         })
                @Html.ValidationMessageFor(c => c.Name)
            </span>
        </p>
        <p>
            <label>
                Description</label>
            <div class="field">
                @Html.TextAreaFor(c => c.Description,
                                     new
                                         {
                                             @class = "input-xxlarge",
                                             placeholder = "Description"
                                         })
                @Html.ValidationMessageFor(c => c.Description)
            </div>
        </p>
        <p>
            <label>
                Priority</label>
            <span class="field">
                @Html.TextBoxFor(c => c.Priority,
                                     new
                                         {
                                             @class = "input-xlarge",
                                             placeholder = "Priority"
                                         })
                @Html.ValidationMessageFor(c => c.Priority)
            </span>
        </p>
        <p>
            <label>
                From Date</label>
            <div class="field">
                @Html.Telerik().DatePickerFor(c => c.FromDate)
                @Html.ValidationMessageFor(c => c.FromDate)
            </div>
        </p>
        <p>
            <label>
                To Date</label>
            <div class="field">
                @Html.Telerik().DatePickerFor(c => c.ToDate)
                @Html.ValidationMessageFor(c => c.ToDate)
            </div>
        </p>
        <p>
            <label>
                Number of Articles</label>
            <span class="field">
                @Html.TextBoxFor(c => c.TopArticle,
                                     new
                                         {
                                             @class = "input-xlarge",
                                             placeholder = "Number of Articles"
                                         })
                @Html.ValidationMessageFor(c => c.TopArticle)
            </span>
        </p>
        <p>
            <label>
                Show in Index Page</label>
            <span class="field">
                @Html.CheckBoxFor(c => c.Index)
                @Html.ValidationMessageFor(c => c.Index)
            </span>
        </p>
        <p>
            <label>
                Show in Home Page</label>
            <span class="field">
                @Html.CheckBoxFor(c => c.HomePage)
                @Html.ValidationMessageFor(c => c.HomePage)
            </span>
        </p>
        <p>
            <label>
                Show in Category Page</label>
            <span class="field">
                @Html.CheckBoxFor(c => c.CategoryPage)
                @Html.ValidationMessageFor(c => c.CategoryPage)
            </span>
        </p>
        <p>
            <label>
                Show in Article Page</label>
            <span class="field">
                @Html.CheckBoxFor(c => c.ArticlePage)
                @Html.ValidationMessageFor(c => c.ArticlePage)
            </span>
        </p>
        <p>
            <label>
                Non-Article</label>
            <span class="field">
                @Html.CheckBoxFor(c => c.NoArticle)
                @Html.ValidationMessageFor(c => c.NoArticle)
            </span>
        </p>
        <p>
            <label>
                Filter by Date</label>
            <span class="field">
                @Html.CheckBoxFor(c => c.FilterByDate)
                @Html.ValidationMessageFor(c => c.FilterByDate)
            </span>
        </p>
        <p>
            <label>
                Activated</label>
            <span class="field">
                @Html.CheckBoxFor(c => c.Activated)
                @Html.ValidationMessageFor(c => c.Activated)
            </span>
        </p>
        <p class="stdformbutton">
            <label>
            </label>
            <input type="submit" value="Insert New" class="btn btn-primary" />
            <input type="reset" value="Cancel" class="btn" />
        </p>
        </form>
    </div>
</div>
